package routes

import (
	"github.com/gin-gonic/gin"
	"lottery/web/controllers"
)

func addAdminCodeRouters(rg *gin.RouterGroup, admc *controllers.AdminCodeController) {
	// 后台首页面
	rg.GET("/", admc.Get) // 对应网址： http://127.0.0.1:8000/admin/

	rg.POST("/import", admc.PostImport)

	rg.GET("/delete", admc.GetDelete)

	rg.GET("/reset", admc.GetReset)

	rg.GET("/recache", admc.GetRecache)
}
